<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
           ul li{
            list-style: none;
        }
    </style>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in lesson":key="index">
            {{item.name }}-{{item.price|myCurrency('元')}}
            </li>
        </ul>
    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script>
         var vm=new Vue({
             el:"#app",
             data:{
                lesson:[
                    {name:'苹果-促销5折',price:15},
                    {name:'香蕉-促销5折',price:25},
                    {name:'雪梨-促销5折',price:30},
                    {name:'橘子-促销5折',price:35}
                ]
             },
             filters:{
                 myCurrency:function(myInput,arg1){
                     var result=myInput*0.5+arg1
                     return result
                 }
             }
             
         })
   </script>
</body>
</html>